package factory.one.entity;

import java.util.Date;

/**
 * @author sk.z
 * 2023/9/18
 * 退货
 **/
public class Refund {
    private Long id;
    private Long orderId;
    private Long batchId;
    private Integer number; //退货数量
    private String createUser; //创建用户
    private Date createTime; //创建时间

    //for view
    private String productName; //前端展示

    public static final String CREATE_SQL = "    create table REFUND (\n" +
            "        ID bigint not null GENERATED ALWAYS AS IDENTITY,\n" +
            "        ORDER_ID bigint not null,\n" +
            "        BATCH_ID bigint not null,\n" +
            "        NUMBER int not null,\n"+
            "        CREATE_USER varchar(32) not null,\n" +
            "        CREATE_TIME timestamp not null,\n" +
            "        primary key (ID)\n" +
            "    )";

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getBatchId() {
        return batchId;
    }

    public void setBatchId(Long batchId) {
        this.batchId = batchId;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }
}
